import request from '@/utils/request'
import Cookies from 'js-cookie'
// 列表
export function getList(data) {
    return request({
        url: '/Statistic_stock_order/get_stock_order',
        method: 'post',
        data: data
    })
}
// 获取差额详情
export function getGap(data) {
    return request({
        url: '/finance/clerk_finance',
        method: 'post',
        data: data
    })
}
export function getDetail(data) {
    return request({
        url: '/Statistic_stock_order/get_stock_order_detail',
        method: 'post',
        data: data
    })
}
// 导出
export function getExport(data) {
    window.location.href = `https://${location.host}/smsi/index.php/Statistic_stock_order/get_excel_order?type="${data.type}"&start=${data.start}&end=${data.end}&supplier=${data.supplier}&category_id=${data.category_id}&house_name=${data.house_name}&order_id=${data.order_id}&didixueshengka=${Cookies.get('SMS_AdminToken')}`; 
}
